package regist;

import regist.dto.UserDto;

/**
 * 抽象观察者类.
 *
 * @author GongXincheng
 * @since 2019-09-23 15:08
 */
public class ObserverExper extends BaseObserver<UserDto> {

    ObserverExper(BaseSubject<UserDto> baseSubject) {
        super(baseSubject);
        this.observerName = "初始化经验";
    }

    @Override
    void operation() {
        UserDto userDto = baseSubject.getSubjectStatus();
        userDto.setAge("12");
        System.out.println(observerName + "，邮箱发送成功...." + userDto);
    }
}
